package com.cloudbroker.bcs.platform.ltb.middle.util;

import com.cloudbroker.bcs.csvc.lightinvesting.api.vo.request.InterestCertForm;
import com.cloudbroker.bcs.csvc.lightinvesting.api.vo.request.RegForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.vo.LeaderIDRegForm;
import com.cloudbroker.bcs.platform.ltb.bizapi.service.admin.vo.UserCenterLeaderRegisterForm;

/**
 * Created by tianrui on 2016/7/18.
 */
public class HttpToBGFormUtil {

    /**
     * 外部用户注册入参转换
     * */
    public static RegForm registFormSwap(LeaderIDRegForm form){
        RegForm regForm = new RegForm();
        regForm.setBranch_no(form.getBranch_no());
        regForm.setOp_station(form.getOp_station());
        regForm.setSendercomp_id(form.getSendercomp_id());
        regForm.setPassword(form.getPassword());
        regForm.setMobile_tel(form.getMobile_tel());
        regForm.setAlias_name(form.getAlias_name());
        regForm.setOp_branch_no(form.getOp_branch_no());
        regForm.setOp_entrust_way(form.getOp_entrust_way());
        regForm.setOp_station(form.getOp_station());
        regForm.setPassword_type(form.getPassword_type());
        return regForm;
    }
    /**
     * 外部用户注册入参转换
     * */
    public static RegForm registFormSwap(UserCenterLeaderRegisterForm form){
        RegForm regForm = new RegForm();
        regForm.setOp_station(form.getOp_station());
        regForm.setBranch_no(form.getBranch_no());
        regForm.setSendercomp_id(form.getSendercomp_id());
        regForm.setPassword(form.getPassword());
        regForm.setMobile_tel(form.getMobile_tel());
        regForm.setAlias_name(form.getAlias_name());
        regForm.setOp_branch_no(form.getOp_branch_no());
        regForm.setOp_entrust_way(form.getOp_entrust_way());
        regForm.setOp_station(form.getOp_station());
        regForm.setPassword_type(form.getPassword_type());
        return regForm;
    }
//    /**
//     * 投顾认证入参转换
//     * */
//    public static InterestCertForm leaderIDApplyFormSwap(LeaderIDRegForm form){
//        InterestCertForm retForm = new InterestCertForm();
//        retForm.setOp_branch_no(form.getOp_branch_no());
//        retForm.setOperator_no(form.getOperator_no());
//        retForm.setUser_type(form.getUser_type());
//        retForm.setOp_password(form.getOp_password());
//        retForm.setOp_station(form.getOp_station());
//        retForm.setOp_entrust_way(form.getOp_entrust_way());
//        retForm.setBranch_no(form.getBranch_no());
//        retForm.setMenu_id((long)form.getMenu_id());
//        retForm.setFunction_id((long)form.getFunction_id());
//        retForm.setAudit_action(form.getAudit_action());
//        retForm.setSendercomp_id(form.getSendercomp_id());
//        retForm.setAdviser_id(form.getUser_key());
//        retForm.setClient_name(form.getClient_name());
//        retForm.setMobile_tel(form.getMobile_tel());
//        retForm.setPromotion_flag(form.getPromotion_flag());
//        retForm.setCompany_id(form.getCompany_id());
//        retForm.setBroker_account(form.getBroker_account());
//        retForm.setSex(form.getSex());
//        retForm.setId_kind(form.getId_kind());
//        retForm.setId_no(form.getId_no());
//        retForm.setId_begindate(form.getId_begindate());
//        retForm.setId_enddate(form.getId_enddate());
//        retForm.setQq(form.getQq());
//        retForm.setQualify_no(form.getQualify_no());
//        retForm.setQualify_begindate(form.getQualify_begindate());
//        retForm.setQualify_enddate(form.getQualify_enddate());
//        retForm.setWork_age(form.getWork_age());
//        retForm.setAddress(form.getAddress());
//        retForm.setClient_branch_no(form.getClient_branch_no());
//        retForm.setBackground_info(form.getBackground_info());
//        return retForm;
//    }

}
